projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cde95b
)
Fix compilation warning: set a default case in switchs
author
Javier Jardón
<jjardon@gnome.org>
Thu, 15 Apr 2010 19:10:32 +0000
(21:10 +0200)
committer
Javier Jardón
<jjardon@gnome.org>
Thu, 15 Apr 2010 19:10:32 +0000
(21:10 +0200)
gtk/gtktoolbar.c
patch
|
blob
|
history
diff --git
a/gtk/gtktoolbar.c
b/gtk/gtktoolbar.c
index a54379138740d12d5406588ea87d1eecca8d8a3f..b56abdf462fc2352a7909e849fc31e808fe22ad3 100644
(file)
--- a/
gtk/gtktoolbar.c
+++ b/
gtk/gtktoolbar.c
@@
-4303,6
+4303,10
@@
toolbar_content_get_goal_allocation (ToolbarContent *content,
*/
g_assert_not_reached ();
break;
+
+ default:
+ g_assert_not_reached ();
+ break;
}
}
@@
-4311,7
+4315,7
@@
toolbar_content_get_allocation (ToolbarContent *content,
GtkAllocation *allocation)
{
GtkToolbarChild *child;
-
+
switch (content->type)
{
case TOOL_ITEM:
@@
-4326,6
+4330,10
@@
toolbar_content_get_allocation (ToolbarContent *content,
else
*allocation = child->widget->allocation;
break;
+
+ default:
+ g_assert_not_reached ();
+ break;
}
}